<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'catalogue-form',
    //'enableAjaxValidation' => false,
    'enableClientValidation' => true,
    'htmlOptions' => array(
        'enctype' => 'multipart/form-data',
        'class' => 'form-horizontal',
    ),
        ));
?>
<div class="tabbable">

    <div class="tab-content">
        <div class="row-fluid">
            <div class="span12">
                <!--PAGE CONTENT BEGINS-->                
                <div class="control-group">
                    <label class="control-label">Tên catalogue</label>
                    <div class="controls">
                        <?php echo $form->textField($model, "name", array('size' => 60, 'maxlength' => 100, 'class' => 'span5', 'placeholder' => 'Tên catalogue')); ?>
                        <span class="help-inline"><?php echo $form->error($model, 'name'); ?></span>
                    </div>
                </div>
                <div class="control-group">
                        <label class="control-label">File upload</label>
                        <div class="controls">
                            <?php echo $form->fileField($model, 'file_name', array('class' => 'id-input-file-1 span5')); ?>
                            <span class="help-inline" style="float:left;margin-left:390px;"><?php echo $form->error($model, 'file_name'); ?></span>
                        </div>
                    </div>
                <div class="clear"></div>
                <div class="form-actions">
                    <button class="btn btn-info" type="submit">
                        <i class="icon-ok bigger-110"></i>
                        Submit
                    </button>
                </div>
            </div>
            <!--PAGE CONTENT ENDS-->
        </div><!--/.span-->
    </div><!--/.row-fluid-->    

</div>
<?php $this->endWidget(); ?>
